Creates or zero's out the length of the file specified.
#include <File.au3>
_FileCreate ( $sFilePath )
Parameters
$sFilePath | Path and filename of the file to be created. |
Return Value
Success: | Returns a 1 |
Failure: | Returns a 0 |
@Error: | 0 = No error. |
1 = Error opening specified file | |
2 = File could not be written to |
Remarks
None.
Related
FileOpen
Example
#include <File.au3>
If Not _FileCreate("error.log") Then
MsgBox(4096,"Error", " Error Creating/Resetting log. error:" & @error)
EndIf